From 26e73674db626d51f9eb57349f219907f524b178 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 25 Jun 2023 19:57:49 +0100 Subject: Add WASM code gen for push-string instruction --- ...mpiler.testing.snapshots.Snapshotter)].expected | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenPushStringTests]/[method:pushStringIsCompiledToDataAndIndexToData(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenPushStringTests]/[method:pushStringIsCompiledToDataAndIndexToData(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected') diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenPushStringTests]/[method:pushStringIsCompiledToDataAndIndexToData(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenPushStringTests]/[method:pushStringIsCompiledToDataAndIndexToData(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected new file mode 100644 index 00000000..92bf46c7 --- /dev/null +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenPushStringTests]/[method:pushStringIsCompiledToDataAndIndexToData(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -0,0 +1,32 @@ + +module.wasm: file format wasm 0x1 + +Section Details: + +Type[1]: + - type[0] () -> nil +Function[1]: + - func[0] sig=0 +Memory[1]: + - memory[0] pages: initial=9 +Code[1]: + - func[0] size=4 +Data[1]: + - segment[0] <.data> memory=0 size=9 - init i32=0 + - 0000000: 0000 0005 6865 6c6c 6f ....hello +Custom: + - name: "name" + - func[0] +Custom: + - name: "linking" + - segment info [count=1] + - 0: .data p2align=2 [ ] + - symbol table [count=2] + - 0: F func=0 [ binding=global vis=default ] + - 1: D segment=0 offset=0 size=9 [ binding=global vis=default ] + +Code Disassembly: + +00002f func[0] : + 000030: 41 00 | i32.const 0 + 000032: 0b | end \ No newline at end of file -- cgit v1.2.3